/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.soc.cs5226.gui.entities;

import edu.soc.cs5226.gui.entities.util.Constants;
import java.sql.Timestamp;
import javax.faces.bean.ManagedBean;

/**
 *
 * @author huijia
 */
@ManagedBean
public class RollbackSegment implements DBParameter {
    private Timestamp dateTime;
    private long waits = 0;
    private long gets = 0;
    private long rollbackSegment = 0;
    private String rs_healthStatus;
        
    public String getActualTime() {
        return Constants.DATEFORMAT.format(dateTime.getTime());
    }
    
    public Timestamp getdateTime() {
        return dateTime;
    }

    public void setdateTime(Timestamp dateTime) {
        this.dateTime = dateTime;
    }

    public long getGets() {
        return gets;
    }

    public void setGets(long gets) {
        this.gets = gets;
    }

    public long getRollbackSegment() {
        return rollbackSegment;
    }

    public void setRollbackSegment(long rollbackSegment) {
        this.rollbackSegment = rollbackSegment;
    }

    public String getRs_healthStatus() {
        return rs_healthStatus;
    }

    public void setRs_healthStatus(String rs_healthStatus) {
        this.rs_healthStatus = Constants.convertStatus(rs_healthStatus);
    }

    public long getWaits() {
        return waits;
    }

    public void setWaits(long waits) {
        this.waits = waits;
    }
    
}
